/*
 * 交通控制常量
 */

export const LANE_MODE_OPTIONS = [
  { label: '左转', value: 'LEFT_TURN' },
  { label: '直行', value: 'STRAIGHT' },
  { label: '右转', value: 'RIGHT_TURN' },
  { label: '直行右转', value: 'STRAIGHT_RIGHT' },
  { label: '左转 + 直行右转', value: 'LEFT_TURN+STRAIGHT_RIGHT' },
  { label: '直行 + 右转', value: 'STRAIGHT+RIGHT_TURN' },
];

export const MQTT_STATUS_COLOR_MAP = {
  SUCCESS: 'success',
  FAILED: 'error',
  TIMEOUT: 'warning',
};

export const MQTT_STATUS_LABEL_MAP = {
  SUCCESS: '成功',
  FAILED: '失败',
  TIMEOUT: '超时',
};

export const MQTT_STATUS_OPTIONS = Object.keys(MQTT_STATUS_LABEL_MAP).map((key) => ({
  label: MQTT_STATUS_LABEL_MAP[key],
  value: key,
}));

export const HEARTBEAT_HISTORY_QUERY_DEFAULT = {
  pageNum: 1,
  pageSize: 10,
  deviceRoad: undefined,
  deviceId: undefined,
  requestId: undefined,
  status: undefined,
  startTime: undefined,
  endTime: undefined,
};

